package zy.blue7.gui.netty.custom.qq.service.impl;

import io.netty.channel.Channel;
import zy.blue7.gui.netty.custom.qq.message.Message;
import zy.blue7.gui.netty.custom.qq.service.MessageHandler;

import java.io.IOException;

/**
 * @Author: blue7
 * @Date: 2022/2/28 21:41
 * @Version 1.0
 * @Description
 */
public class EmptyMessageHandlerImpl implements MessageHandler {
    @Override
    public void handle(Message message, Channel channel) throws IOException {

        channel.writeAndFlush(message);
        System.out.println(message);
        System.out.println("empty heart beat...");
    }
}
